#pragma once


// CSetButtonDlg dialog

class CSetButtonDlg : public CDialog
{
	DECLARE_DYNAMIC(CSetButtonDlg)

public:
	CSetButtonDlg(CWnd* pParent = NULL);   // standard constructor
	CSetButtonDlg(HWND hwin,CWnd* pParent = NULL); 
	BOOL OnInitDialog();
	virtual ~CSetButtonDlg();
	void CSetButtonDlg::OnPaint();
// Dialog Data
	enum { IDD = IDD_DIALOG1 };
	int click_count;
	HWND hwindow;
	HBITMAP hbitmap;
	int width;
	int height;
	int cap_left;
	int cap_top;
	int cap_width;
	int cap_height;
	CPoint approach_pos;
	CPoint jump_0m_pos;
	CPoint jump_pos;
	CPoint clk_approach;
	CPoint clk_jump_0;
	CPoint clk_jump;

	virtual BOOL PreTranslateMessage(MSG*   pMsg);
	bool captureRightTopCorner(HWND h);
	void showPictureCaptured();
	void drawSetStatus();
	void leftbuttonclicked(MSG*   pMsg);
	void rightbuttonclicked(MSG*   pMsg);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
